LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := silk2any
LOCAL_SRC_FILES := main.cpp silksource.cpp queue/queue/condmutex.cpp queue/queue/queue.cpp

LOCAL_MODULE_TAGS := optional

LOCAL_CFLAGS := -D__STDC_CONSTANT_MACROS 
LOCAL_CFLAGS += -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_LDLIBS += -Llibs -lavcodec  -lavdevice  -lavfilter -lavutil   -lavformat  -lavresample  -lpostproc  -lswresample  -lswscale  -lx264  -lz
LOCAL_STATIC_LIBRARIES :=silkcommon
#LOCAL_SHARED_LIBRARIES := silkcommon
LOCAL_C_INCLUDES += ../android-ffmpeg-buildtool/ffmpeg/ jni/silkcodec/silk/interface/
LOCAL_SHARED_LIBRARIES += libcutil

include $(BUILD_EXECUTABLE)

include $(call all-makefiles-under,$(LOCAL_PATH))
